home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1999 October / pcp156b.iso / handson / files / java / compiling with JDK.txt < prev    next >
Encoding:
Text File  |  1999-07-20  |  695 b   |  21 lines

  1. Compiling and running the .java files with the Java Development Kit
  2.  
  3. First of all you should create a special folder (e.g. C:\PAN) on your hard disk and then copy all of the workshop files into it. The Java Development Kit should be installed on your PC and both the current directory and the standard classes library should be included in a CLASSPATH variable. You can check this by opening a DOS window and typing:
  4.  
  5. C:\PAN>set
  6.  
  7. The result should look something like this:
  8.  
  9. .
  10. .
  11. PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.1.5\BIN
  12. CLASSPATH=.;C:\jdk1.1.5\lib
  13. .
  14. .
  15.  
  16. Within the new directory type:
  17.  
  18. C:\PAN >javac Panorama.java
  19.  
  20. This will compile the java file in the directory. 
  21.